package com.dream.service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value = "工时统计")
@Data
@NoArgsConstructor
public class TaskGatherDto {
    @ApiModelProperty(name = "itemName",value = "项目名称",example = "A项目")
    private String itemName;
    @ApiModelProperty(name = "taskUserName",value = "任务执行人",example = "user1")
    private String taskUserName;
    @ApiModelProperty(name = "workHour",value = "工时",example = "10")
    private Double workHour;
    @ApiModelProperty(name = "taskStartDate",value = "任务开始时间",example = "2020-10-01")
    private String startDate;

    @ApiModelProperty(name = "totalHour",value = "总工时",example = "20")
    private Double totalHour;

    public TaskGatherDto(String itemName, String taskUserName, Double workHour, String startDate) {
        this.itemName = itemName;
        this.taskUserName = taskUserName;
        this.workHour = workHour;
        this.startDate = startDate;
    }
}
